package com.my.lucky.model;

import java.io.Serializable;

/**
 * 除权除息数据模型
 */
public class ExRightDividend implements Serializable {
    private static final long serialVersionUID = 1L;

    private String code;        // 股票代码
    private String date;        // 除权除息日期
    private double dividend;    // 现金分红
    private double transfer;    // 转增比例
    private double allotment;   // 配股比例
    private double allotmentPrice; // 配股价格
    private double beforePrice; // 除权前价格
    private double afterPrice;  // 除权后价格

    public ExRightDividend(String code, String date, double dividend, double transfer,
                           double allotment, double allotmentPrice, double beforePrice, double afterPrice) {
        this.code = code;
        this.date = date;
        this.dividend = dividend;
        this.transfer = transfer;
        this.allotment = allotment;
        this.allotmentPrice = allotmentPrice;
        this.beforePrice = beforePrice;
        this.afterPrice = afterPrice;
    }

    // Getters
    public String getCode() {
        return code;
    }

    public String getDate() {
        return date;
    }

    public double getDividend() {
        return dividend;
    }

    public double getTransfer() {
        return transfer;
    }

    public double getAllotment() {
        return allotment;
    }

    public double getAllotmentPrice() {
        return allotmentPrice;
    }

    public double getBeforePrice() {
        return beforePrice;
    }

    public double getAfterPrice() {
        return afterPrice;
    }
} 